Drop gtk_widget_has_grab
authorMatthias Clasen <mclasen@redhat.com>
Thu, 23 Apr 2020 17:23:24 +0000 (13:23 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 23 Apr 2020 18:10:44 +0000 (14:10 -0400)
This was just a leftover in our public api.
All other grab-related apis are gone.

docs/reference/gtk/gtk4-sections.txt
gtk/gtkwidget.c
gtk/gtkwidget.h
gtk/gtkwidgetprivate.h

index 5e372b3a28a97d11aaae9d2e81a04fbd5f4a4a88..42a1f9b114729fbea341aa1564dee931d89d7fae 100644 (file)
@@ -4070,7 +4070,6 @@ gtk_widget_get_state_flags
 gtk_widget_has_default
 gtk_widget_has_focus
 gtk_widget_has_visible_focus
-gtk_widget_has_grab
 gtk_widget_is_drawable
 gtk_widget_set_receives_default
 gtk_widget_get_receives_default
index 74b8b46ee8107ac3247055cc8607af5cd744d9c4..da4f588f195d0711a0a91cdc558040d48b7d2fe2 100644 (file)
@@ -5093,10 +5093,10 @@ gtk_widget_has_focus (GtkWidget *widget)
  * @widget: a #GtkWidget
  *
  * Determines if the widget should show a visible indication that
- * it has the global input focus. This is a convenience function for
- * use in ::draw handlers that takes into account whether focus
- * indication should currently be shown in the toplevel window of
- * @widget. See gtk_window_get_focus_visible() for more information
+ * it has the global input focus. This is a convenience function
+ * that takes into account whether focus indication should currently
+ * be shown in the toplevel window of @widget.
+ * See gtk_window_get_focus_visible() for more information
  * about focus indication.
  *
  * To find out if the widget has the global input focus, use
@@ -5281,7 +5281,7 @@ gtk_widget_get_receives_default (GtkWidget *widget)
   return priv->receives_default;
 }
 
-/**
+/*< private >
  * gtk_widget_has_grab:
  * @widget: a #GtkWidget
  *
index c43049961b15b6cfb718386aee4502fbdf5acd02..631547484fa4aabc150bc37b1503ed90079652f1 100644 (file)
@@ -437,9 +437,6 @@ void      gtk_widget_set_receives_default (GtkWidget           *widget,
 GDK_AVAILABLE_IN_ALL
 gboolean  gtk_widget_get_receives_default (GtkWidget           *widget);
 
-GDK_AVAILABLE_IN_ALL
-gboolean   gtk_widget_has_grab            (GtkWidget           *widget);
-
 GDK_AVAILABLE_IN_ALL
 gboolean   gtk_widget_device_is_shadowed  (GtkWidget           *widget,
                                            GdkDevice           *device);
index ad7cece06680fa5ecaa41dcac5d175d2c7db6b60..5085353525ee353c32b91cf41209c025d6724d7c 100644 (file)
@@ -244,6 +244,7 @@ void              _gtk_widget_set_has_default              (GtkWidget *widget,
 void              _gtk_widget_set_has_grab                 (GtkWidget *widget,
                                                             gboolean   has_grab);
 
+gboolean          gtk_widget_has_grab                      (GtkWidget *widget);
 void              _gtk_widget_grab_notify                  (GtkWidget *widget,
                                                             gboolean   was_grabbed);